/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ssi.mrms.model;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author jirapatjantsakool
 */
public class RMcpdtlModel extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer cpdid;
    private String cpdcptyp;
    private String cpdcpdesc;
    private String cpdcusdesc;
    private String cpdcradesc;
    private String cpdrevtel;
    private Date cpdrevteldat;
    private Date cpdrevteltm;
    private String cpdrevemail;
    private Date cpdrevemaildat;
    private String codrevemailrefno;
    private String cpdrevbmnm;
    private String cpdcreby;
    private Date cpdcredat;
    private String cpdupdby;
    private Date cpdupddat;
    
    private RMcphdrModel rmcphdr;

    public RMcpdtlModel() {
    }

    public RMcpdtlModel(Integer cpdid) {
        this.cpdid = cpdid;
    }

    public Integer getCpdid() {
        return cpdid;
    }

    public void setCpdid(Integer cpdid) {
        this.cpdid = cpdid;
    }

    public String getCpdcptyp() {
        return cpdcptyp;
    }

    public void setCpdcptyp(String cpdcptyp) {
        this.cpdcptyp = cpdcptyp;
    }

    public String getCpdcpdesc() {
        return cpdcpdesc;
    }

    public void setCpdcpdesc(String cpdcpdesc) {
        this.cpdcpdesc = cpdcpdesc;
    }

    public String getCpdcusdesc() {
        return cpdcusdesc;
    }

    public void setCpdcusdesc(String cpdcusdesc) {
        this.cpdcusdesc = cpdcusdesc;
    }

    public String getCpdcradesc() {
        return cpdcradesc;
    }

    public void setCpdcradesc(String cpdcradesc) {
        this.cpdcradesc = cpdcradesc;
    }

    public String getCpdrevtel() {
        return cpdrevtel;
    }

    public void setCpdrevtel(String cpdrevtel) {
        this.cpdrevtel = cpdrevtel;
    }

    public Date getCpdrevteldat() {
        return cpdrevteldat;
    }

    public void setCpdrevteldat(Date cpdrevteldat) {
        this.cpdrevteldat = cpdrevteldat;
    }

    public Date getCpdrevteltm() {
        return cpdrevteltm;
    }

    public void setCpdrevteltm(Date cpdrevteltm) {
        this.cpdrevteltm = cpdrevteltm;
    }

    public String getCpdrevemail() {
        return cpdrevemail;
    }

    public void setCpdrevemail(String cpdrevemail) {
        this.cpdrevemail = cpdrevemail;
    }

    public Date getCpdrevemaildat() {
        return cpdrevemaildat;
    }

    public void setCpdrevemaildat(Date cpdrevemaildat) {
        this.cpdrevemaildat = cpdrevemaildat;
    }

    public String getCodrevemailrefno() {
        return codrevemailrefno;
    }

    public void setCodrevemailrefno(String codrevemailrefno) {
        this.codrevemailrefno = codrevemailrefno;
    }

    public String getCpdrevbmnm() {
        return cpdrevbmnm;
    }

    public void setCpdrevbmnm(String cpdrevbmnm) {
        this.cpdrevbmnm = cpdrevbmnm;
    }

    public String getCpdcreby() {
        return cpdcreby;
    }

    public void setCpdcreby(String cpdcreby) {
        this.cpdcreby = cpdcreby;
    }

    public Date getCpdcredat() {
        return cpdcredat;
    }

    public void setCpdcredat(Date cpdcredat) {
        this.cpdcredat = cpdcredat;
    }

    public String getCpdupdby() {
        return cpdupdby;
    }

    public void setCpdupdby(String cpdupdby) {
        this.cpdupdby = cpdupdby;
    }

    public Date getCpdupddat() {
        return cpdupddat;
    }

    public void setCpdupddat(Date cpdupddat) {
        this.cpdupddat = cpdupddat;
    }

    public RMcphdrModel getRmcphdr() {
        return rmcphdr;
    }

    public void setRmcphdr(RMcphdrModel rmcphdr) {
        this.rmcphdr = rmcphdr;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cpdid != null ? cpdid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RMcpdtlModel)) {
            return false;
        }
        RMcpdtlModel other = (RMcpdtlModel) object;
        if ((this.cpdid == null && other.cpdid != null) || (this.cpdid != null && !this.cpdid.equals(other.cpdid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.ssi.mrms.model.Rmcpdtl[ cpdid=" + cpdid + " ]";
    }
    
}
